<?php

  if ($handle = @opendir(DIR_FS_ADMIN.DIR_WS_INCLUDES.'/jscript')) {
      while (false !== ($tmpfile = readdir($handle))) {
        if (preg_match('/\.js$/', $tmpfile) ){
	  print '<script language="JavaScript" src="includes/jscript/'.$tmpfile.'" type="text/javascript"></script>
';
        }
      }
        closedir($handle);
  }

  if ($handle = @opendir(DIR_FS_ADMIN.DIR_WS_INCLUDES.'/css')) {
      while (false !== ($tmpfile = readdir($handle))) {
        if (preg_match('/\.css$/', $tmpfile) ){
	  print '<link href="includes/css/'.$tmpfile.'" rel="stylesheet" type="text/css" />
';
        }
      }
        closedir($handle);
  }



